set(APP yaffs-test)
add_executable(${APP} 
    yaffs_test.c
    yaffs_allocator.c
    yaffs_attribs.c
    yaffs_bitmap.c
    yaffs_cache.c
    yaffs_checkptrw.c
    yaffs_ecc.c
    yaffs_endian.c
    yaffs_guts.c
    yaffs_hweight.c
    yaffs_nameval.c
    yaffs_nand.c
    yaffs_osglue.c
    yaffs_packedtags2.c
    yaffs_summary.c
    yaffs_tagscompat.c
    yaffs_tagsmarshall.c
    yaffs_verify.c
    yaffs_yaffs1.c
    yaffs_yaffs2.c
    yaffsfs.c)
target_include_directories(
    ${APP} PRIVATE
    ${PROJECT_ROOT}/include
    ${BUILD_DIR}/kconfig/include/generated)
target_link_libraries(${APP} ${QELIB})

add_executable(read read.c)
target_include_directories(
    read PRIVATE
    ${PROJECT_ROOT}/include
    ${BUILD_DIR}/kconfig/include/generated)
target_link_libraries(read ${QELIB})